﻿using Xamarin.Forms;

namespace Games.Common
{
    public class ImageLabel : Label
    {
        public static readonly BindableProperty BackImageProperty = BindableProperty.Create("BackImage", typeof(string), typeof(ImageLabel));

        public string BackImage
        {
            get { return (string)GetValue(BackImageProperty); }
            set
            {
                SetValue(BackImageProperty, value);
                SetValue(BackgroundColorProperty, Color.Transparent);
            }
        }
    }
}